﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace FacialClub.Models.Entities
{
    /// <summary>
    /// LeadType
    /// </summary>
    [Bind(Include = "LeadTypeName,IsActive,UserCreated,CreatedDate,UserModified,ModifiedDate")]
    [MetadataType(typeof(LeadTypeMetaData))]
    public partial class LeadType
    {
        /// <summary>
        /// Lead Type Meta Data for Validation
        /// </summary>
        [Bind(Exclude = "LeadTypeId")]
        public class LeadTypeMetaData
        {
            /// <summary>
            /// LeadTypeId
            /// </summary>
            [ScaffoldColumn(false)]
            public object LeadTypeId { get; set; }

            /// <summary>
            /// Lead Type
            /// </summary>
            [Required(ErrorMessage = "Lead Type is required")]
            [StringLength(160)]
            [DisplayName("Lead Type")]
            public string LeadTypeName { get; set; }

            /// <summary>
            /// Status of the Lead Type
            /// </summary>
            public bool IsActive { get; set; }

            /// <summary>
            /// User Created
            /// </summary>
            public DateTime UserCreated { get; set; }

            /// <summary>
            /// Creation Date
            /// </summary>
            public DateTime CreatedDate { get; set; }

            /// <summary>
            /// User Modified
            /// </summary>
            public DateTime UserModified { get; set; }

            /// <summary>
            /// Modified Date
            /// </summary>
            public DateTime ModifiedDate { get; set; }
        }
    }
}